Skip to main content

All Questions

Tagged with
5votes
2answers
839views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it bad ...
Tom J Nowell's user avatar
  • 61.2k

close